
package org.come.npc;

import com.tool.role.RoleData;
import java.math.BigDecimal;
import org.come.Frame.ZhuFrame;
import org.come.action.NpcMenuAction;
import org.come.until.FormsManagement;

public class GangCreate implements NpcMenuAction {
	public GangCreate() {
	}

	@Override
    public void menuControl(String type) {
		if (RoleData.getRoleData().getLoginResult().getGang_id() != null) {
			if (RoleData.getRoleData().getLoginResult().getGang_id().compareTo(BigDecimal.ZERO) == 0) {
				FormsManagement.showForm(25);
			} else {
				ZhuFrame.getZhuJpanel().addPrompt2("你已经有帮派了");
			}
		} else {
			FormsManagement.showForm(25);
		}

	}
}
